package hnx.ca.main.processor;

import hnx.ca.entity.DecryptStringResult;
import hnx.ca.entity.EncryptStringResult;
import hnx.ca.entity.SignStringResult;
import hnx.ca.entity.SignXmlResult;
import hnx.ca.entity.VerifyStringResult;
import hnx.ca.entity.VerifyXmlResult;
import hnx.ca.util.ErrorCodes;

public class HnxInterfaces {

	public static String checkConnection(){
		return ErrorCodes.CONNECT.CONNECTED;
	}
	
	@SuppressWarnings("unused")
	private static VerifyXmlResult verifyXmlFile(String xmlUrl){
		return MainProcessor.verifyXmlFile(xmlUrl);
	}
	
	@SuppressWarnings("unused")
	private static SignXmlResult signXmlFile(String inputUrl, String outputUrl){
		return MainProcessor.signXmlFile(inputUrl, outputUrl);
	}
	
	public static SignStringResult signString(String base64String){
		return MainProcessor.signString(base64String);
	}
	
	public static VerifyStringResult verifyString(String orignialText, String signature, String customerId){
		return MainProcessor.verifyString(orignialText, signature, customerId);
	}
	
	public static EncryptStringResult encryptString(String encodedBase64String, String customerId){
		return MainProcessor.encryptString(encodedBase64String, customerId);
	}
	
	public static DecryptStringResult decryptString(String encodedBase64String){
		return MainProcessor.decryptString(encodedBase64String);
	}
	
	
}
